//
//  PakingTwoCell.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/9/12.
//  Copyright © 2017年 金橙云. All rights reserved.
//
#define ONE_WID ([UIScreen mainScreen].bounds.size.width/3)
#import "PakingTwoCell.h"

@implementation PakingTwoCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
        _quLab = [[UILabel alloc] init];
        _quLab.textAlignment = NSTextAlignmentCenter;
        _quLab.text = @"P1";
        _quLab.textColor = [UIColor blackColor];
        _quLab.textAlignment = NSTextAlignmentCenter;
        // _dayLab.backgroundColor = [UIColor redColor];
        _quLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_quLab];
        [_quLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            make.left.equalTo(self.mas_left);
            make.top.equalTo(self.mas_top).offset(10);
        }];
        
        
        
        _bianLab = [[UILabel alloc] init];
        _bianLab.textAlignment = NSTextAlignmentCenter;
        _bianLab.text = @"P090";
        _bianLab.textColor = [UIColor blackColor];
        _bianLab.textAlignment = NSTextAlignmentCenter;
        // _louLab.backgroundColor = [UIColor redColor];
        _bianLab.font = [UIFont systemFontOfSize:12];
        [self addSubview:_bianLab];
        [_bianLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            make.centerX.equalTo(self.mas_centerX);
            make.top.equalTo(self.mas_top).offset(10);
        }];
        
        
        _ceLab = [[UILabel alloc] init];
        _ceLab.textAlignment = NSTextAlignmentCenter;
        _ceLab.text = @"[7]";
        _ceLab.textColor = [UIColor orangeColor];
        //_wuLab.backgroundColor = [UIColor redColor];
        _ceLab.textAlignment = NSTextAlignmentCenter;
        _ceLab.font = [UIFont systemFontOfSize:14];
        [self addSubview:_ceLab];
        [_ceLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.size.mas_equalTo(CGSizeMake(ONE_WID, 20));
            //make.left.equalTo(_louLab.mas_right);
            make.top.equalTo(self.mas_top).offset(10);
            make.right.mas_equalTo(self.mas_right);
        }];
        
        for (int i = 0; i<2; i++)
        {
            UILabel *shuLine = [[UILabel alloc] init];
            shuLine.frame = CGRectMake(ONE_WID+ONE_WID*i, 0, 2, 40);
            shuLine.backgroundColor = [UIColor lightGrayColor];
            [self addSubview:shuLine];
            
        }
       
        
        
        
    }
    return self;
}
-(void)setUpCeoPakingTwoCellQu:(NSString *)_qu withBianLab:(NSString *)_bian withCeLab:(NSString *)_ce
{
    _quLab.text = _qu;
    _bianLab.text = _bian;
    _ceLab.text = _ce;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
